import axios from 'axios'

// json-server请求多个服务器地址
// const baseURL = 'http://10.41.156.36:5000/api'
// axios.defaults.baseURL = 'http://10.41.156.35:5000/api'
const baseURl = 'http://10.41.156.4:5000/api'

export default {
  // 今日必抢
  async getTodayShows() {
    return await axios.get(`${baseURl}/todayshows`)
  },
  // 值的一看
  async getWorthlooks() {
    return await axios.get(`${baseURl}/worthlooks`)
  },
  // 大咖
  async getArtists() {
    return await axios.get(`${baseURl}/artists`)
  },
  // 中通ad
  async getBannerADs() {
    return await axios.get(`${baseURl}/middleBannerAds`)
  },
  // 推荐竖表
  async getRecommends() {
    return await axios.get(`${baseURL}/recommends`)
  },
  // 演出详情
  async getshowDetails(id) {
    return await axios.get(`${baseURL}/showdetailslist?performanceId=` + id)
  }
}
